package com.tyc.es.service;

import com.tyc.es.model.Page;
import com.tyc.es.model.Product;

import java.io.IOException;
import java.util.List;

public interface ProductService {
    boolean insert(List<Product> products) throws IOException;
    Page<Product> getAll(int size, int num) throws IOException;
}
